<!--{template /module/admin/view/head}-->
<div id="left_layout">
	<div id="main_content" class="container-fluid">
		<!--{template /module/admin/view/head_nav}-->
		<div class="row-fluid">
			<table><tr><td>
			<div class="well widget" {$dispatches[operations][search]}>
				<div class="widget-header">
					<h3 class="title">{lang state.allone.view.header}</h3>
				</div>
				<div class="widget-content">
					<div class="form-inline" {$dispatches[operations][search]}>
					<form id="frm_search" name="frmSearch" action="{$ADMIN_SCRIPT}/stat/allone" method="post">
			            	{lang state.allone.view.search.time}　
			            <input type="text" name="txtBeginDate" maxlength="16" class="input-medium" value="{$_var[gp_txtBeginDate]}" />
			            	{lang state.allone.view.search.time.0}
			            <input type="text" name="txtEndDate" maxlength="16" class="input-medium" value="{$_var[gp_txtEndDate]}" />
			            
						<button type="submit" class="btn">{lang state.allone.view.search.submit}</button>
					</form>
		            </div>
				</div>
			</div>
			</td></tr></table>
		</div>
		<div class="row-fluid">
			<table>
				<tr>
				<td valign="top">
				<div class="well widget">
					<div class="widget-header">
						<h3 class="title">{lang state.allone.view.overall.header}</h3>
					</div>
					<div class="widget-content">
					<table class="table table-hover">
					<thead>
				        <tr>
				        	<th width="100">{lang state.allone.view.overall.viewstat}</th>
				        	<th>{echo $viewstat['VIEWS'] + 0;}{lang state.allone.view.overall.ci}</th>
				        </tr>
			        </thead>
			        <tr>
			        	<td>{lang state.allone.view.overall.userstat}</td>
			        	<td>{$userstat[USERS]}{lang state.allone.view.overall.ge}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.productstat}</td>
			        	<td>{$productstat[ALL]}/{$productstat[ISAUDIT]}/{$productstat[SELLING]}{lang state.allone.view.overall.ge}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.brandstat}</td>
			        	<td>{$brandstat[ALL]}/{$brandstat[ISAUDIT]}{lang state.allone.view.overall.ge}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.orderstat}</td>
			        	<td>{$orderstat[ALL]}/{$orderstat[STATUS]}{lang state.allone.view.overall.ge}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.salestat}</td>
			        	<td>{$salestat[ALL]}{lang state.allone.view.overall.yuan}</td>
			        </tr>
			        </table>
			        
			        <hr/>
			        
			        <table class="table table-hover">
			        <thead>
				        <tr>
				        	<th width="100">{lang state.allone.view.overall.avgview}</th>
				        	<th>{$viewstat[AVG_VIEWS]}{lang state.allone.view.overall.ci}</th>
				        </tr>
			        </thead>
			        <tr>
			        	<td>{lang state.allone.view.overall.avguser}</td>
			        	<td>{$userstat[AVG_USERS]}{lang state.allone.view.overall.ge}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.avgproduct}</td>
			        	<td>{$morderstat[AVG_ORDERS]}{lang state.allone.view.overall.ge}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.avgorder}</td>
			        	<td>{$avgorderstat[AVG_TOTALPRICE]}{lang state.allone.view.overall.yuan}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.changeorderstat}</td>
			        	<td>{$changeorderstat[ALL]}%</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.userorderstat}</td>
			        	<td>{$userorderstat[ALL]}{lang state.allone.view.overall.ge}</td>
			        </tr>
			        <tr>
			        	<td>{lang state.allone.view.overall.buypecent}</td>
			        	<td>{$userstat[BUYPECENT]}%</td>
			        </tr>
			        </table>
					</div>
				</div>
				</td>
				<td width="40">&nbsp;</td>
				<td>
				<div class="well widget">
					<div class="widget-header">
						<h3 class="title">{lang state.allone.view.salestrend}</h3>
					</div>
					<div class="widget-content">
					<table class="table table-hover">
					<thead>
						<tr>
							<th width="150">{lang state.allone.view.salestrend.time}</th>
							<th>{lang state.allone.view.salestrend.number}</th>
						</tr>
					</thead>
					<!--{loop $xlist $key $val}-->
			        <tr>
			        	<td>{$key}</td>
			        	<td>{echo $val[NUM] + 0;}</td>
			        </tr>
			        <!--{/loop}-->
			        </table>
					</div>
				</div>
				
				<div class="well widget">
					<div class="widget-header">
						<h3 class="title">{lang state.allone.view.consumertrend}</h3>
					</div>
					<div class="widget-content">
					<table class="table table-hover">
					<thead>
						<tr>
							<th width="150">{lang state.allone.view.consumertrend.time}</th>
							<th>{lang state.allone.view.consumertrend.money}</th>
						</tr>
					</thead>
			        <!--{loop $xlist $key $val}-->
			        <tr>
			        	<td width="150">{$key}</td>
			        	<td>{echo $val[PRICE] + 0;}</td>
			        </tr>
			        <!--{/loop}-->
			        </table>
					</div>
				</div>
				</td>
			</tr>
			</table>
		</div>
	</div>
</div>
<script>
$(function(){
	$("#frm_search .input-medium").datepicker({format:'yyyy-mm-dd'});
});
</script>
<!--{template /module/admin/view/foot}-->